import Vue from "vue"
import VueRouter from "vue-router"
import Home from "../views/Home.vue"
import homeRouter from "../views/Home/homeRouter"
Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    redirect: "main",
    children: [...homeRouter],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/details",
    name: "details",
    component: () => import("../views/details.vue"),
  },
]

const router = new VueRouter({
  routes,
})

export default router
